package br.com.cast.UseCaseProdutos.notaFiscal.paginas;

import org.apache.wicket.markup.html.panel.Panel;

public class CadastroNotaFiscal extends Panel {
	private static final long serialVersionUID = 1L;
	
	private FormNotaFiscal form;

	public CadastroNotaFiscal(String id) {
		super(id);
		
		form = new FormNotaFiscal("formNotaFiscal");
		
		add(form);
	}

	public void atualizaModel(Object notaFiscal) {
		form.setDefaultModelObject(notaFiscal);
		form.atualizaLista();
	}

}
